package multigest.vocappulary;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import multigest.vocappulary.CatalogOverviewActivity;

public class ModiMenuActivity extends Activity {
	
	
	private Button btn_practice;
	private Button btn_test;
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_menu);
		
		
		btn_practice = (Button) findViewById(R.id.btn_practice);
		btn_practice.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg0) {
		    	Intent intent = new Intent(getApplicationContext(), CatalogOverviewActivity.class);
		    	intent.putExtra("modus", "practice");
		    	startActivity(intent);
			}
		});
		
		
		btn_test = (Button)	findViewById(R.id.btn_test);
		btn_test.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {	
		    	Intent intent = new Intent(getApplicationContext(), CatalogOverviewActivity.class);
		    	intent.putExtra("modus", "test");
		    	startActivity(intent);
			}
		});
				
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.menu, menu);
		return true;
	}

}
